package com.lanou.tipsy.broadcastReceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

/**
 * Created by dllo on 15/11/6.
 */
public class JpushNetWorkBroadcastReceive extends BroadcastReceiver {
    public static final String TAG = "JpushNetWorkBroadcastReceive";
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent != null) {
            String name = intent.getStringExtra("name");

        }
        if(isOrderedBroadcast()){
            int code = getResultCode();
            String data = getResultData();
            Bundle bundle = getResultExtras(false);
            String name = bundle.getString(" ");
            String pws = bundle.getString(" ");
            Log.i("test", TAG + code+" "+data+" " +name+" " + pws);
        }
    }

}
